<?php /* Smarty version 2.6.26, created on 2013-08-23 07:18:47
         compiled from collection_edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'collection_edit.tpl', 8, false),array('modifier', 'thumb', 'collection_edit.tpl', 13, false),array('modifier', 'l', 'collection_edit.tpl', 41, false),)), $this); ?>
<div class="box">
  <div class="box-content">
	  <form method="post" enctype="multipart/form-data">
	  <table class="adminlist">
	  <tbody>
	  <tr>
	    <td width="140">Tiêu đề</td>
	    <td><input type="text" class="input-text" name="collection_title" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['col']['col_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
	  </tr>
	  <tr>
	    <td>Hình minh họa</td>
	    <td>
	    	<img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['col']['col_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'h75') : smarty_modifier_thumb($_tmp, 'h75')); ?>
" /> <br />
	      <input type="file" class="input-text" name="collection_thumb" />
	    </td>
	  </tr>
	  <tr>
	    <td>Hình sản phẩm</td>
	    <td>
	      <div class="clUpload"></div>
	    </td>
	  </tr>
		<tr>
        <td>Xóa hình ảnh</td>
        <td>
        <div class="clearfix">
          <?php $_from = $this->_tpl_vars['col']['col_images']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['image']):
?>
          <div style="width: 100px; height: 120px; text-align: center; float: left; display: inline;"><label for="col_img_<?php echo $this->_tpl_vars['id']; ?>
"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['image']['image_path'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'scale90x90') : smarty_modifier_thumb($_tmp, 'scale90x90')); ?>
" /></label><br /><input id="col_img_<?php echo $this->_tpl_vars['id']; ?>
" type="checkbox" name="image_delete[]" value="<?php echo $this->_tpl_vars['id']; ?>
" /></div>
          <?php endforeach; endif; unset($_from); ?>
        </div>
        </td>
      </tr>
	  <tr>
	    <td>Trạng thái</td>
	    <td>
	    	<input type="radio" value="1" name="collection_published" id="collection_enabled_on" <?php if ($this->_tpl_vars['col']['col_published'] == 1): ?>checked="checked"<?php endif; ?> /> <label for="collection_enabled_on">Hiển thị</label>  &nbsp; &nbsp; &nbsp;
	      <input type="radio" value="0" name="collection_published" id="collection_enabled_off" <?php if ($this->_tpl_vars['col']['col_published'] == 0): ?>checked="checked"<?php endif; ?> /> <label for="collection_enabled_off">Ẩn</label>	      
	    </td>
	  </tr>
	  <tr>
	    <td colspan="2" align="center"><input class="input-submit" type="submit" value="Gửi đi" /> <a href="<?php echo ((is_array($_tmp='collection/admin')) ? $this->_run_mod_handler('l', true, $_tmp) : smarty_modifier_l($_tmp)); ?>
">Hủy</a></td>
	  </tr>
	  </tbody>
	  </table>
	  </form>
  </div>
</div>